<?php

namespace StudyBuddy\Api\v1;

use StudyBuddy\SubmittedAnswerWWW;

class SubmittedAnswer extends SubmittedAnswerWWW {

    public function __construct(\StudyBuddy\Registry $oRegistry) {
        $this->oRegistry = $oRegistry;
        $this->aData = $oRegistry->Request->getArray();
        d('$this->aData: ' . print_r($this->aData, 1));
    }

    /**
     * Get name of app used for submitting
     * this question
     * @return string
     */
    public function getApp() {
        return $this->oRegistry->appName;
    }

    /**
     * Get id of app used for submitting
     * this question
     * @return null
     */
    public function getAppId() {
        return $this->oRegistry->clientAppId;
    }

}
